package com.glsc.ngateway.common.base.domain.mysql.gateway.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Getter
@Setter
@RequiredArgsConstructor
@Table(name = "t_gw_system_main_contact")
@org.hibernate.annotations.Table(appliesTo = "t_gw_system_main_contact",comment = "信息系统联系人信息表")
public class SystemMainContact implements Serializable {

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "int comment '主键'")
    private Integer id;

    @ApiModelProperty(value = "联系人姓名")
    @Column(name = "contact_person", columnDefinition = "varchar(20) comment '联系人姓名'")
    private String contactPerson;

    @ApiModelProperty(value = "联系电话")
    @Column(name = "contact_phone", columnDefinition = "varchar(20) comment '联系电话'")
    private String contactPhone;

    @ApiModelProperty(value = "联系人备注")
    @Column(name = "contact_remark", columnDefinition = "varchar(20) comment '联系人备注'")
    private String contactRemark;

    @ApiModelProperty(value = "系统ID")
    @Column(name = "op_id", columnDefinition = "int(11) comment '系统ID'")
    private Integer opId;
}
